<template>
    <div class="panel-com">
        <div class="container">
            <div class="head">
                <h3>
                    {{ title }}<small>{{ subTitle }}</small>
                </h3>
                <!-- 右侧内容区域 -->
                <slot name="right" />
            </div>
            <!-- 主体内容区域 -->
            <slot />
        </div>
    </div>
</template>
  
<script>
export default {
    name: 'panelcomView',
    props: {
        // 主标题
        title: {
        type: String,
        default: ''
        },
        // 副标题
        subTitle: {
        type: String,
        default: ''
        }
    }
}
</script>
  
<style scoped lang='scss'>
.panel-com {
    .head {
        padding: 40px 0;
        display: flex;
        align-items: flex-end;
        h3 {
            flex: 1;
            font-size: 32px;
            font-weight: normal;
            margin-left: 6px;
            height: 35px;
            line-height: 35px;
            small {
                font-size: 16px;
                color: #999;
                margin-left: 20px;
            }
        }
        span{
            
            font-size: 16px;
            vertical-align: middle;
            margin-right: 4px;
            color: #999;
            &:hover{
                // color: rgb(48, 244, 110);
                cursor: pointer;
            }
        }
    }
}
  </style>